import { apiPost } from '../func/fetch'
import type { TrafficRecord, TrafficRecordPage } from './type'
import type { PageResult } from '@/api/global.ts'

const _api = import.meta.env.VITE_FACEID_URL
// <-- 通行记录 -->
// 通行记录分页查询
export const trafficRecordPageApi = (params: TrafficRecordPage): Promise<PageResult<TrafficRecord>> => {
  return apiPost(`${_api}/pass/page`, params)
}
